<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
        <title><?php echo $title; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php if (isset($meta)) echo meta($meta); ?>
        <link rel="shortcut icon" href="/favicon.ico" />
        <link rel="stylesheet" href="/assets/themes/frontend/style.css" />
        <script type="text/javascript" src="/assets/js/jquery.js"></script>
        <script type="text/javascript" src="/assets/themes/frontend/js.js"></script>
    </head>
    <body> 
        <div class="joined">
            <div class="jheader"><a href="/"><img alt="Tham gia K+" title="Sôi động mùa giải Ngoại Hạng Anh cùng K+" src="/assets/themes/frontend/images/jlogo.png"/></a></div>
            <ul class="jnav">
                <li><a href="/gioi-thieu/"><img alt="Giới thiệu" title="Giới thiệu" src="/assets/themes/frontend/images/about-btn.png"/></a></li>
                <li><a href="/tham-gia/"><img alt="Tham gia" title="Tham gia" src="/assets/themes/frontend/images/joined-btn.png"/></a></li>
                <li><a href="/the-le-giai-thuong/"><img alt="Thể lệ và giải thưởng" title="Thể lệ và giải thưởng" src="/assets/themes/frontend/images/win-btn.png"/></a></li>
            </ul>
            <div class="clearfix"></div>
            <div class="jmain">
                <form>
                    <div class="left">&nbsp;</div>
                    <div class="mid">
                        <?php $total = count($data['questions']); ?>
                        <?php for ($index = 0; $index < $total; $index++) : ?>
                            <div class="question">
                                <div class="q_name">Câu <?php echo $index + 1; ?>:</div>
                                <div class="q_content">
                                    <?php echo $data['questions'][$index]['content']; ?>
                                    <table>
                                        <tr>
                                            <?php
                                            foreach ($data['questions'][$index]['aswers'] as $ans) {
                                                echo '<td><input type="checkbox" name="chk_group[' . $data['questions'][$index]['id'] . '][]" value="' . $ans['id'] . '"/> ' . $ans['content'] . '</td>';
                                            }
                                            ?>
                                        </tr>
                                    </table>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        <?php endfor; ?>
                        <div class="q_line"></div>
                    </div>
                    <div class="right">&nbsp;</div>
                    <div class="clearfix"></div>
                    <div class="jsubmit">
                        <a href="/tham-gia/hoan-thanh/"><img alt="Hoàn thành" src="/assets/themes/frontend/images/success-btn.png"/></a>
                    </div>
                </form>
            </div>
        </div>
    </body> 
</html>